﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Hi_Baidu.Cache.CacheObject
{
    /// <summary>
    ///     提供了分组相关操作的缓存
    /// </summary>
    public class ItemControlCache : Cache
    {
        /// <summary>
        ///     提供了分组相关操作的缓存
        /// </summary>
        /// <param name="CacheType">分组缓存类型</param>
        /// <param name="Key">缓存唯一标示</param>
        /// <param name="Value">缓存值</param>
        /// <param name="ExpridTime">缓存过期日期</param>
        public ItemControlCache(ItemCacheType CacheType, string Key, string Value, DateTime ExpridTime)
            : base(Key, Value, ExpridTime)
        {
            this.cacheType = CacheType;
        }

        private ItemCacheType cacheType;
        /// <summary>
        ///    缓存类型
        /// </summary>
        public ItemCacheType CacheType
        {
            get { return cacheType; }
        }

        /// <summary>
        ///     分组缓存类型
        /// </summary>
        public enum ItemCacheType
        {
            /// <summary>
            ///     添加分组缓存
            /// </summary>
            ADD_NEW_ITEM,
            /// <summary>
            ///     更新分组缓存
            /// </summary>
            UPDATE_ITEM,
            /// <summary>
            ///     删除分组缓存
            /// </summary>
            DELETE_ITEM
        }

        public override void Dispose()
        {
            throw new NotImplementedException();
        }
    }
}
